﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum MessageState
    {
        New=0,
        Read=1,
    }

    public static class MessageStateEx
    {
        public static string Name(this MessageState state)
        {
            switch (state)
            { 
                case MessageState.New:
                    return "未读";
                case MessageState.Read:
                    return "已读";
                default:
                    return string.Empty;
            }
        }
    }
}
